using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TopographicProductionTools._DataManagement._Geodatabase
{
    /// <summary>
    /// <para>Unzip MGCP Cell And Import</para>
    /// <para>Unzips and imports compressed Multinational Geospatial Co-production Program (MGCP) 1-degree-by-1-degree cell packages (*.zip) into a target geodatabase.</para>
    /// <para>将压缩的多国地理空间协同生产计划 （MGCP） 1 度乘 1 度像元包 （*.zip） 解压缩并导入到目标地理数据库中。</para>
    /// </summary>    
    [DisplayName("Unzip MGCP Cell And Import")]
    public class UnzipCellAndImport : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UnzipCellAndImport()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Root_Folder">
        /// <para>Root Folder</para>
        /// <para>The root folder that contains one or more compressed shapefile cell packages in a .zip file.</para>
        /// <para>在 .zip 文件中包含一个或多个压缩的 shapefile 单元格包的根文件夹。</para>
        /// </param>
        /// <param name="_Target_Geodatabase">
        /// <para>Target Geodatabase</para>
        /// <para>The geodatabase where the unzipped shapefiles will be imported.</para>
        /// <para>将导入解压缩的 shapefile 的地理数据库。</para>
        /// </param>
        public UnzipCellAndImport(object _Root_Folder, object _Target_Geodatabase)
        {
            this._Root_Folder = _Root_Folder;
            this._Target_Geodatabase = _Target_Geodatabase;
        }
        public override string ToolboxName => "Topographic Production Tools";

        public override string ToolName => "Unzip MGCP Cell And Import";

        public override string CallName => "topographic.UnzipCellAndImport";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_Root_Folder, _Target_Geodatabase, _Output_Geodatabase];

        /// <summary>
        /// <para>Root Folder</para>
        /// <para>The root folder that contains one or more compressed shapefile cell packages in a .zip file.</para>
        /// <para>在 .zip 文件中包含一个或多个压缩的 shapefile 单元格包的根文件夹。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Root Folder")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Root_Folder { get; set; }


        /// <summary>
        /// <para>Target Geodatabase</para>
        /// <para>The geodatabase where the unzipped shapefiles will be imported.</para>
        /// <para>将导入解压缩的 shapefile 的地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Target_Geodatabase { get; set; }


        /// <summary>
        /// <para>Output Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _Output_Geodatabase { get; set; }


        public UnzipCellAndImport SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}